<?php
	$usermethods = array('stylists', 'add_stylist', 'edit_stylist', 'customers', 'add_customer', 'edit_customer', 'admin_users', 'add_admin');
	$user_active = in_array($this->router->method, $usermethods) ? 'active' : '';
	
	$ecommethods = array('products', 'add_product', 'edit_product');
	$ecom_active = in_array($this->router->method, $ecommethods) ? 'active' : '';

	$bookingmethodds = array('stylist_availability', 'add_time', 'time_table', 'booking_list');
	$booking_active = in_array($this->router->method, $bookingmethodds) ? 'active' : '';

?>

<ul class="main-menu">
	<li><a href="<?php echo site_url('admin/');?>" class="<?php echo $this->router->method == "index" ? 'active' : ''; ?>" >Dashboard</a></li>
	<li>
		<a href="#" class="<?php echo $user_active; ?>">Users</a>
		<ul class="sub-menu">
                <li><a href="<?php echo site_url('admin/customers');?>">Customers</a></li>
                <li><a href="<?php echo site_url('admin/stylists');?>">Stylists</a></li>
                <li><a href="<?php echo site_url('admin/admin_users');?>">Admin Users</a></li>
         </ul>
	</li>
	<li>
		<a href="#" class="<?php echo $ecom_active; ?>">E-Commerce</a>
		<ul class="sub-menu">
                <li><a href="<?php echo site_url('admin/products');?>">Products</a></li>
                <li><a href="<?php echo site_url('admin/orders');?>">Orders</a></li>
            </ul>
	</li>
	<li>
		<a href="#" class=" <?php echo $booking_active; ?>">Appointments</a>
		<ul class="sub-menu">
                <li><a href="<?php echo site_url('admin/booking_list');?>">Appointment List</a></li>
				<li><a href="<?php echo site_url('admin/time_table');?>">Time Table</a></li>
        </ul>
	</li>
	<li><a href="<?php echo site_url('admin/feedback');?>" class="<?php echo $this->router->method == "feedback" ? 'active' : ''; ?>" >Feedbacks</a></li>
	<li><a href="<?php echo site_url('admin/sendtext');?>" class="<?php echo $this->router->method == "sendtext" ? 'active' : ''; ?>" >Text Message</a></li>
	
	

</ul>
